home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / X11 / XIntersectRegion.z / XIntersectRegion
Encoding:
Text File  |  2002-10-03  |  4.6 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXIIIInnnntttteeeerrrrsssseeeeccccttttRRRReeeeggggiiiioooonnnn((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXIIIInnnntttteeeerrrrsssseeeeccccttttRRRReeeeggggiiiioooonnnn((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XIntersectRegion, XUnionRegion, XUnionRectWithRegion,
  10.           XSubtractRegion, XXorRegion, XOffsetRegion, XShrinkRegion -
  11.           region arithmetic
  12.  
  13.      SSSSYYYYNNNNTTTTAAAAXXXX
  14.           XIntersectRegion(_s_r_a, _s_r_b, _d_r__r_e_t_u_r_n)
  15.                 Region _s_r_a, _s_r_b, _d_r__r_e_t_u_r_n;
  16.  
  17.           XUnionRegion(_s_r_a, _s_r_b, _d_r__r_e_t_u_r_n)
  18.                 Region _s_r_a, _s_r_b, _d_r__r_e_t_u_r_n;
  19.  
  20.           XUnionRectWithRegion(_r_e_c_t_a_n_g_l_e, _s_r_c__r_e_g_i_o_n,
  21.           _d_e_s_t__r_e_g_i_o_n__r_e_t_u_r_n)
  22.                XRectangle *_r_e_c_t_a_n_g_l_e;
  23.                Region _s_r_c__r_e_g_i_o_n;
  24.                Region _d_e_s_t__r_e_g_i_o_n__r_e_t_u_r_n;
  25.  
  26.           XSubtractRegion(_s_r_a, _s_r_b, _d_r__r_e_t_u_r_n)
  27.                 Region _s_r_a, _s_r_b, _d_r__r_e_t_u_r_n;
  28.  
  29.           XXorRegion(_s_r_a, _s_r_b, _d_r__r_e_t_u_r_n)
  30.                 Region _s_r_a, _s_r_b, _d_r__r_e_t_u_r_n;
  31.  
  32.           XOffsetRegion(_r, _d_x, _d_y)
  33.                 Region _r;
  34.                 int _d_x, _d_y;
  35.  
  36.           XShrinkRegion(_r, _d_x, _d_y)
  37.                 Region _r;
  38.                 int _d_x, _d_y;
  39.  
  40.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  41.           _d_e_s_t__r_e_g_i_o_n__r_e_t_u_r_n
  42.                     Returns the destination region.
  43.  
  44.           _d_r__r_e_t_u_r_n Returns the result of the computation.  ds Dy move
  45.                     or shrink
  46.  
  47.           _d_x
  48.           _d_y        Specify the x and y coordinates, which define the
  49.                     amount you want to  the specified region.
  50.  
  51.           _r         Specifies the region.
  52.  
  53.           _r_e_c_t_a_n_g_l_e Specifies the rectangle.
  54.  
  55.           _s_r_a
  56.           _s_r_b       Specify the two regions with which you want to
  57.                     perform the computation.
  58.  
  59.           _s_r_c__r_e_g_i_o_n
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXIIIInnnntttteeeerrrrsssseeeeccccttttRRRReeeeggggiiiioooonnnn((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXIIIInnnntttteeeerrrrsssseeeeccccttttRRRReeeeggggiiiioooonnnn((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.                     Specifies the source region to be used.
  75.  
  76.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  77.           The _X_I_n_t_e_r_s_e_c_t_R_e_g_i_o_n function computes the intersection of
  78.           two regions.
  79.  
  80.           The _X_U_n_i_o_n_R_e_g_i_o_n function computes the union of two regions.
  81.  
  82.           The _X_U_n_i_o_n_R_e_c_t_W_i_t_h_R_e_g_i_o_n function updates the destination
  83.           region from a union of the specified rectangle and the
  84.           specified source region.
  85.  
  86.           The _X_S_u_b_t_r_a_c_t_R_e_g_i_o_n function subtracts srb from sra and
  87.           stores the results in dr_return.
  88.  
  89.           The _X_X_o_r_R_e_g_i_o_n function calculates the difference between
  90.           the union and intersection of two regions.
  91.  
  92.           The _X_O_f_f_s_e_t_R_e_g_i_o_n function moves the specified region by a
  93.           specified amount.
  94.  
  95.           The _X_S_h_r_i_n_k_R_e_g_i_o_n function reduces the specified region by a
  96.           specified amount.  Positive values shrink the size of the
  97.           region, and negative values expand the region.
  98.  
  99.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  100.           XCreateRegion(3X11), XDrawRectangle(3X11),
  101.           XEmptyRegion(3X11)
  102.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 10/3/02)
  130.  
  131.  
  132.  
  133.